package com.lxd.property.pojo;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import com.lxd.property.utils.CustomDateSerializer2;

public class Shacconumber {

	private Integer id, attribute, state, creater;

	private String aliasname, account, remarks;

	@Override
	public String toString() {
		return "Shacconumber [id=" + id + ", attribute=" + attribute
				+ ", state=" + state + ", creater=" + creater + ", aliasname="
				+ aliasname + ", account=" + account + ", remarks=" + remarks
				+ ", creation=" + creation + "]";
	}

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date creation;

	public Shacconumber() {
		super();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getAttribute() {
		return attribute;
	}

	public void setAttribute(Integer attribute) {
		this.attribute = attribute;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getCreater() {
		return creater;
	}

	public void setCreater(Integer creater) {
		this.creater = creater;
	}

	public String getAliasname() {
		return aliasname;
	}

	public void setAliasname(String aliasname) {
		this.aliasname = aliasname;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@JsonSerialize(using = CustomDateSerializer2.class)
	public Date getCreation() {
		return creation;
	}

	public void setCreation(Date creation) {
		this.creation = creation;
	}

}
